<?php 
/**
 * 
 * chat 处理类
 * @author zhouhao
 *
 */
class chat {
	
	public function get() {//获得聊天记录
		$chatModel = new ChatModel(); 
		$ret = $chatModel->getChat();
		
		$url = new Url();
		$callback = $url->get('jsonpcallback');
		Json::do_jsonp_encode($callback,$ret);
	}
	
	public function send() {//发送聊天记录
		$chatModel = new ChatModel();
		$ret = $chatModel->sendChat();
		
		$url = new Url();
		$callback = $url->get('jsonpcallback');
		Json::do_jsonp_encode($callback,$ret);
	}
}
?>